package org.arnetminer.personalized.vo;

import java.util.Date;

import org.arnetminer.personalized.util.Global;



/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class Message  implements java.io.Serializable {


    // Fields    
	private long id;
	private String title;
    private String content;
    private String sendDate;
    private User sender;
    private User receiver;
    private int isPrivate;
    private int isDraft;
    private int isRead;
    private int inOrout;
     


    // Constructors

    /** default constructor */
    public Message() {
    	sendDate = Global.FORMATTER.format(new Date());
    	isPrivate = 0;
    	isDraft = 0;
    	isRead = 0;
    }

    
    /** full constructor */
    public Message(String title, String content, User sender, User receiver, int isPrivate, int isDraft, int isRead, int inOrout) {
    	this.content = content;
    	sendDate = Global.FORMATTER.format(new Date());
    	this.title = title;
    	this.sender = sender;
    	this.receiver = receiver;
    	this.isPrivate = isPrivate;
    	this.isDraft = isDraft;
    	this.isRead = isRead;
    	this.inOrout = inOrout;
    }


    // Property accessors


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public String getSendDate() {
		return sendDate;
	}


	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}


	public User getSender() {
		return sender;
	}


	public void setSender(User sender) {
		this.sender = sender;
	}


	public User getReceiver() {
		return receiver;
	}


	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}


	public int getIsPrivate() {
		return isPrivate;
	}


	public void setIsPrivate(int isPrivate) {
		this.isPrivate = isPrivate;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public int getIsDraft() {
		return isDraft;
	}


	public void setIsDraft(int isDraft) {
		this.isDraft = isDraft;
	}


	public int getIsRead() {
		return isRead;
	}


	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}


	public int getInOrout() {
		return inOrout;
	}


	public void setInOrout(int inOrout) {
		this.inOrout = inOrout;
	}
	
	
	
}